package com.zjtaixue.usersite.service;

import com.alibaba.fastjson.JSONObject;
import com.zjtaixue.usersite.domain.Major;
import com.zjtaixue.usersite.page.PageResult;
import com.zjtaixue.usersite.query.MajorQueryObject;

import java.util.List;

public interface MajorService {
    /**
     * 专业的高级查询加分页
     *
     * @param qo
     * @return
     */
    PageResult<JSONObject> listPageResult(MajorQueryObject qo);

    int insert(Major major);

    Major getById(Integer id);

    void deleteById(Integer id);

    int update(Major major);

    List<Major> listAllMajors();
}
